package cn.samler.diandi.api.mapper;

import cn.samler.diandi.api.entity.Rank;
import cn.samler.diandi.api.model.db.UserRankCalcResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;

import java.util.List;

@Mapper
public interface UserRankMapper {
    List<Rank> getRankByUserId(int uid);
    UserRankCalcResult calc(@Param("id") int id, @Param("role") String role);
    Integer update(UserRankCalcResult result);
}
